<?php
namespace app\admin\validate;
use think\Validate;

class Login extends Validate
{
    //定义验证规则
    protected $rule = [
        'name' => 'require',
        'pwd' => 'require'
    ];

    protected $scene =[
        'repwd' =>['name','pwd'],
        'repwd_ajax' =>['email']
    ];

}